# -*- coding: utf-8 -*-

'''
@Time    :   2019/08/26 17:13
@File    :   cyele.py
'''
from apscheduler.schedulers.blocking import BlockingScheduler


def tick():
    print("xxx")

def cron_run(hour="*/5"):
    print("kaishi")
    scheduler = BlockingScheduler()
    scheduler.add_job(tick, 'cron', second=hour)
    
    try:
        scheduler.start()
    except (KeyboardInterrupt, SystemExit):
        pass

if __name__ == '__main__':
    cron_run()
